package com.njlime.core.helper;

/**
 * 全局常量类
 * Created by Dean on 2017-7-19.
 */
public class GlobalValue {
    //是否
    public static final Integer YES = 1;
    public static final Integer NO = 0;
    //有效无效
    public static final Integer AVAILABLE = 1;
    public static final Integer UNAVAILABLE = 0;
    //上移下移
    public static final Integer UP_SORT = 1;
    public static final Integer DOWN_SORT = 2;
    //审核状态
    public static final Integer UNAUDIT = 0; //未审核
    public static final Integer AUDITED = 1; //审核通过
    /**
     * 发布状态
     * PREVIEW = 1; 预览
     * UNPUBLISHED = 2; 未发布
     * PUBLISHED = 3; 已发布
     * CANCELED = 4; 已下线
     */
    public static final class PublishStatus {
        public static final int PREVIEW = 1; //预览
        public static final int UNPUBLISHED = 2; //未发布
        public static final int PUBLISHED = 3; //已发布
        public static final int CANCELED = 4; //已下线
    }

    /**
     * 内容业务类型
     * INFORMATION = 1; //热点
     * COMMUNITY = 2; //贴吧
     * LIVE = 3; //直播
     */
    public static final class BusinessType {
        public static final int INFORMATION = 1; //热点
        public static final int COMMUNITY = 2; //贴吧
        public static final int LIVE = 3; //直播
    }

    //是否允许多用户登录
    public static final Integer MULTI_ACCOUNT_LOGIN = 1;
    //允许最大登陆失败次数
    public static final Integer MAX_LOGIN_FAIL_TIMES = 5;
    //错误次数过多限制登录时间（分钟）
    public static final Integer LOGIN_FAIL_LIMIT_TIME = 60;
    //顶级菜单ID
    public static final Integer TOP_MENU_ID = 0;
    //公共权限菜单ID
    public static final Integer PUBLIC_MENU_ID = 99999;
    //系统（小清柠）单位ID
    public static final Integer SYS_UNIT_ID = 1;
    //系统管理员角色ID
    public static final Integer SYS_MANAGE_ROLE = 1;
    //注册单位用户默认角色（单位管理员：默认权限范围为本单位及子单位）
    public static final Integer DEFAULT_ROLE_ID = 2;
    //系统管理员
    public static final Integer SYS_USER_ID = 1;
    //资源系统URL
    public static final String FILE_SERVER_ADDRESS = "https://xqn.njlime.com/upload";
    //内容管理自动截取摘要长度
    public static final Integer ABSTRACT_LENGTH = 40;

}
